package com.yuyu.sequence.seq;

import java.util.Date;

/**
 * 序列实体
 */
public class DbSeqEntity {

    /**
     * id
     */
    private Integer id;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 序列值
     */
    private Long seqNum;

    /**
     * 初始化时间
     */
    private Date initTime;

    /**
     * 版本号
     */
    private Long version;

    public DbSeqEntity() {
    }

    public DbSeqEntity(Integer id, Integer type, Long seqNum, Date initTime) {
        this.id = id;
        this.type = type;
        this.seqNum = seqNum;
        this.initTime = initTime;
    }

    public DbSeqEntity(Integer id, Long seqNum, Date initTime, Long version) {
        this.id = id;
        this.seqNum = seqNum;
        this.initTime = initTime;
        this.version = version;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getSeqNum() {
        return seqNum;
    }

    public void setSeqNum(Long seqNum) {
        this.seqNum = seqNum;
    }

    public Date getInitTime() {
        return initTime;
    }

    public void setInitTime(Date initTime) {
        this.initTime = initTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "DbSeqEntity{" +
                "id=" + id +
                ", type=" + type +
                ", seqNum=" + seqNum +
                ", initTime=" + initTime +
                ", version=" + version +
                '}';
    }
}
